package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.Date;
import java.util.List;

public interface OrderSettingDao {
    //根据date数据，返回数据的个数
    long findByDate(Date orderDate);

    //进行预约数据的编辑
    void edit(OrderSetting orderSetting);

    //进行预约数据的添加
    void add(OrderSetting orderSetting);

    List<OrderSetting> findBydate(@Param("date") String date);

    //根据预约日期，查询orderSetting表
    OrderSetting findByOrderDate(String orderDate);

    void editReservationsByOrderDate(OrderSetting orderSetting);
}
